<div id="updateUserProfileValidSubmissionFormArea"
     style="display:none;">
    <table border="0" style="border:0px solid #000000;width:100%;font-family:Verdana;font-size:12px;">
        <thead>
            <tr>
                <th colspan="2" style="text-align:left;font-family:Arial;font-size:16px;padding-bottom:10px;">
                    Publish Profile to the Public Registry?
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="2" style="text-align:left;font-family:Verdana;font-size:12px;padding-top:10px;border-top:1px solid #CCCCCC;">
                    All required fields have been successfully completed allowing you to publish your profile.
                    Please check the box below to confirm all the information provided is true and correct,
                    and that you understand this information will be made available to the public.
                    In order to complete this process and to publish your profile you must click the "Save" button below.
                </td>
            </tr>
            <tr>
                <td colspan="2" 
                    style="text-align:left;font-family:Verdana;font-size:12px;font-weight:bold;padding-top:10px;padding-bottom:10px;text-align:center;">
                    <input id="tempProfileSubmittedIndicator"
                           dojotype="dijit.form.CheckBox"
                           name="tempProfileSubmittedIndicator"
                           <?php echo ($user->getProfileSubmittedIndicator() == "1") ? 'checked="true"' : ""; ?>
                           value="1"
                           type="checkbox"
                           onclick="updateProfileSubmittedIndicator()"/>
                    <label for="tempProfileSubmittedIndicator" style="color:#000000;font-family:Arial;font-size:14px;">
                        I Agree to Publishing this Profile to the Public Registry
                    </label>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:left;font-family:Verdana;font-size:12px;font-weight:bold;padding-top:5px;padding-bottom:20px;">
                    <span style="font-weight:normal;">
                        If you wish to save your completed profile information without publishing to the public registry, 
                        confirm that the box above is unchecked and click the "Save" button below.
                    </span>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:right;padding-top:5px;border-top:1px solid #CCCCCC;">
                    <div style="float:left;">
                        <div style="float:left;width:350px;padding-top:2px;">
                            <div id="updateUserProfileFormStatusMessage0"></div>
                        </div>
                        <div style="float:right;text-align:right;width:150px;">
                            <button dojoType=dijit.form.Button
                                type="reset"
                                name="resetUpdateUserProfileForm0"
                                id="resetUpdateUserProfileForm0"
                                iconClass="emptyIcon"
                                onclick="cancelUpdateUserProfileValidSubmission();">
                            Cancel
                        </button>
                        <button dojoType=dijit.form.Button
                                type="button"
                                name="submitUpdateUserProfileForm0"
                                id="submitUpdateUserProfileForm0"
                                iconClass="emptyIcon"
                                onclick="submitUserProfileForm(0);">
                            Save
                        </button>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div id="updateUserProfileInvalidSubmissionFormArea"
     style="display:none;">
     <table border="0" style="border:0px solid #000000;width:100%;font-family:Verdana;font-size:12px;">
        <thead>
            <tr>
                <th colspan="2" style="text-align:left;font-family:Arial;font-size:16px;padding-bottom:10px;">
                    Save Your Profile?
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="2"
                    style="text-align:left;font-family:Verdana;font-size:12px;padding-top:10px;border-top:1px solid #CCCCCC;">
                    You are about to save your profile information that does not contain all the required fields.
                    All of your information will be saved, but your profile will not be published to the public registry until you complete all of
                    the required fields. If you wish to publish your profile then click the "Verify Required Fields" button
                    below to view and add the necessary information.
                </td>
            </tr>
            <tr>
                <td colspan="2"
                    style="text-align:center;font-family:Verdana;font-size:12px;padding-top:20px;padding-bottom:60px;">
                    <button dojoType=dijit.form.Button
                            type="button"
                            name="verifyInvalidFieldsButton"
                            id="verifyInvalidFieldsButton"
                            iconClass="emptyIcon"
                            onclick="highlightUserProfileInvalidFields();">
                        Verify Required Fields
                    </button>
                </td>
            </tr>
            <tr>
                <td colspan="2"
                    style="text-align:right;padding-top:5px;border-top:1px solid #CCCCCC;">
                    <div style="float:left;">
                        <div style="float:left;width:350px;padding-top:2px;">
                            <div id="updateUserProfileFormStatusMessage1"></div>
                        </div>
                        <div style="float:right;text-align:right;width:150px;">
                            <button dojoType=dijit.form.Button
                                    type="button"
                                    name="cancelUpdateUserProfileForm1"
                                    id="cancelUpdateUserProfileForm1"
                                    iconClass="emptyIcon"
                                    onclick="cancelUpdateUserProfileInvalidSubmission();">
                                Cancel
                            </button>
                            <button dojoType=dijit.form.Button
                                    type="button"
                                    name="submitUpdateUserProfileForm1"
                                    id="submitUpdateUserProfileForm1"
                                    iconClass="emptyIcon"
                                    onclick="submitUserProfileForm(1);">
                                Save
                            </button>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div id="updateUserProfileInvalidSubmissionRemovalFormArea"
     style="display:none;">
     <table border="0" style="border:0px solid #000000;width:100%;font-family:Verdana;font-size:12px;">
        <thead>
            <tr>
                <th colspan="2" style="text-align:left;font-family:Arial;font-size:16px;padding-bottom:10px;">
                    Remove Profile from the Public Registry?
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="2"
                    style="text-align:left;font-family:Verdana;font-size:12px;padding-top:10px;border-top:1px solid #CCCCCC;">
                    You have made changes to your published profile information that does not contain all the required fields.
                    If you save these changes your profile will be removed from the public registry until you complete all of
                    the required fields. Click the "Verify Required Fields" button below to view and add the necessary information in order to publish.
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;font-family:Verdana;font-size:12px;padding-top:20px;padding-bottom:60px;">
                    <button dojoType=dijit.form.Button
                            type="button"
                            name="verifyInvalidFieldsButton2"
                            id="verifyInvalidFieldsButton2"
                            iconClass="emptyIcon"
                            onclick="highlightUserProfileInvalidFields();">
                        Verify Required Fields
                    </button>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:right;padding-top:5px;border-top:1px solid #CCCCCC;">
                    <div style="float:left;">
                        <div style="float:left;width:350px;padding-top:2px;">
                            <div id="updateUserProfileFormStatusMessage2"></div>
                        </div>
                        <div style="float:right;text-align:right;width:150px;">
                            <button dojoType=dijit.form.Button
                                    type="reset"
                                    name="resetUpdateUserProfileForm2"
                                    id="resetUpdateUserProfileForm2"
                                    iconClass="emptyIcon"
                                    onclick="cancelUpdateUserProfileValidSubmissionRemoval();">
                                Cancel
                            </button>
                            <button dojoType=dijit.form.Button
                                    type="button"
                                    name="submitUpdateUserProfileForm2"
                                    id="submitUpdateUserProfileForm2"
                                    iconClass="emptyIcon"
                                    onclick="submitUserProfileForm(2);">
                                Save
                            </button>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
<div id="updateUserProfileConfirmationArea"
     style="display:none;">
    <table style="border:0px solid #000000;width:100%;font-family:Verdana;font-size:12px;">
        <thead>
            <tr>
                <th style="text-align:left;font-family:Arial;font-size:16px;padding-bottom:10px;">Save Completed</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td style="text-align:center;font-family:Verdana;font-size:12px;font-weight:bolder;padding-top:40px;border-top:1px solid #CCCCCC;">
                    Your Profile was Saved Succesfully.
                </td>
            </tr>
            <tr>
                <td id="userProfileNotPublishedAttentionMessageArea"
                    style="text-align:center;font-family:Verdana;font-size:12px;font-weight:bolder;padding-top:20px;display:none;">
                    Attention: All your information has been saved, but you have
                    not agreed to have it published to the public registry.
                </td>
            </tr>
            <tr>
                <td id="userProfilePublishedAttentionMessageArea"
                    style="text-align:center;font-family:Verdana;font-size:12px;font-weight:bolder;padding-top:20px;display:none;">
                    Attention: Your profile has been published to the public registry.
                </td>
            </tr>
            <tr>
                <td style="text-align:center;padding-top:20px;">
                    <button dojoType=dijit.form.Button
                            type="button"
                            name="closeUpdateUserProfileForm"
                            id="closeUpdateUserProfileForm"
                            iconClass="emptyIcon"
                            onclick="closeUpdateUserProfileDialog();">
                        Close
                    </button>
                </td>
            </tr>
        </tbody>
    </table>
</div>